<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nrf51/Board/nrf6310/radio_test_example/main.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51 General Code Examples
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nrf6310_2radio__test__example_2main_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">nrf51/Board/nrf6310/radio_test_example/main.c File Reference</div>  </div>
</div>
<div class="contents">

<p>Radio Test example.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br/>
<code>#include &lt;stdbool.h&gt;</code><br/>
<code>#include &quot;nrf.h&quot;</code><br/>
<code>#include &quot;radio_test.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="simple__uart_8h_source.html">simple_uart.h</a>&quot;</code><br/>
</div>
<p><a href="nrf6310_2radio__test__example_2main_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0213e3b6b4ff1d8d688559ef7b79733f"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::RX_PIN_NUMBER" ref="ga0213e3b6b4ff1d8d688559ef7b79733f" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RX_PIN_NUMBER</b>&#160;&#160;&#160;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae2f7cebc7221f965925d5358defd7020"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::TX_PIN_NUMBER" ref="gae2f7cebc7221f965925d5358defd7020" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TX_PIN_NUMBER</b>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3d3e3f5f057ab1f94efad5b35ec210ed"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::BELL" ref="ga3d3e3f5f057ab1f94efad5b35ec210ed" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BELL</b>&#160;&#160;&#160;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga580a88f98668df1ac5e1683cae31c0b3"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::BS" ref="ga580a88f98668df1ac5e1683cae31c0b3" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BS</b>&#160;&#160;&#160;8</td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nrf__radio__test__example.html#ga0e72d9001271cd2a06f2f9e65c78ea26">radio_tests_t</a> { <br/>
&#160;&#160;<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26ab4fb890b209617dc24f39c055c0173c6">RADIO_TEST_NOP</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a2721442571009734cd53f7a71884d183">RADIO_TEST_TXCC</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a5d48d968b94ee9e08e0cda5cf6c8e83b">RADIO_TEST_TXMC</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a6a76da4dbe998d6a729a76b9ec6c0556">RADIO_TEST_TXSWEEP</a>, 
<br/>
&#160;&#160;<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a32f84c931c9fdcc34e01ac25e297452f">RADIO_TEST_RXC</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a9a76df96a9a7b8392127e4da96bcfa27">RADIO_TEST_RXSWEEP</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26ab4fb890b209617dc24f39c055c0173c6">RADIO_TEST_NOP</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a2721442571009734cd53f7a71884d183">RADIO_TEST_TXCC</a>, 
<br/>
&#160;&#160;<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a5d48d968b94ee9e08e0cda5cf6c8e83b">RADIO_TEST_TXMC</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a6a76da4dbe998d6a729a76b9ec6c0556">RADIO_TEST_TXSWEEP</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a32f84c931c9fdcc34e01ac25e297452f">RADIO_TEST_RXC</a>, 
<a class="el" href="group__nrf__radio__test__example.html#gga0e72d9001271cd2a06f2f9e65c78ea26a9a76df96a9a7b8392127e4da96bcfa27">RADIO_TEST_RXSWEEP</a>
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga17fb021b480a1f220d2579807fa2e398"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::init" ref="ga17fb021b480a1f220d2579807fa2e398" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac3618078947fab6bccf1fc80a6566051"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::help" ref="gac3618078947fab6bccf1fc80a6566051" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>help</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4781a20fe0cbdfdb07e8da6e5704244d"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::get_dec2" ref="ga4781a20fe0cbdfdb07e8da6e5704244d" args="(void)" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>get_dec2</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4ce7158d2b02a2d7d7539cf1b4c5b6ba"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::get_datarate" ref="ga4ce7158d2b02a2d7d7539cf1b4c5b6ba" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>get_datarate</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaab13f817f311b745214fc4f233124b76"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::get_power" ref="gaab13f817f311b745214fc4f233124b76" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>get_power</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaecd9ae6b749a84648a37858faa6574a1"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::print_dec2" ref="gaecd9ae6b749a84648a37858faa6574a1" args="(uint8_t val)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>print_dec2</b> (uint8_t val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3e87c1a2612fe4cd8562e734b0abaa38"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::print_parameters" ref="ga3e87c1a2612fe4cd8562e734b0abaa38" args="(void)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>print_parameters</b> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nrf__radio__test__example.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5a5d1743f6d7d52db70a3afb763f6ab8"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::mode_" ref="ga5a5d1743f6d7d52db70a3afb763f6ab8" args="" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>mode_</b> = RADIO_MODE_MODE_Nrf_2Mbit</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7a1be006cfacee5513c0340dbc5b36e3"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::txpower_" ref="ga7a1be006cfacee5513c0340dbc5b36e3" args="" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>txpower_</b> = RADIO_TXPOWER_TXPOWER_0dBm</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8af44115be8f991a239a6f0e1e3e9b89"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::channel_start_" ref="ga8af44115be8f991a239a6f0e1e3e9b89" args="" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>channel_start_</b> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0716c2eeccec09475f2a0ddb467aa200"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::channel_end_" ref="ga0716c2eeccec09475f2a0ddb467aa200" args="" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>channel_end_</b> = 80</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga158f564b78fb9c8f35f242dc3eaa9f43"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::delayms_" ref="ga158f564b78fb9c8f35f242dc3eaa9f43" args="" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>delayms_</b> = 10</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9bab89a62f62359db1d1da947392cd5c"></a><!-- doxytag: member="nrf6310/radio_test_example/main.c::sweep" ref="ga9bab89a62f62359db1d1da947392cd5c" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>sweep</b> = false</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Radio Test example. </p>

<p>Definition in file <a class="el" href="nrf6310_2radio__test__example_2main_8c_source.html">main.c</a>.</p>
</div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="nrf6310_2radio__test__example_2main_8c.html">main.c</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
